<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}">

</head>
<body>
<input style="color: red" type="text"  th:value="${msg}" class="layui-input" disabled="disabled">

<!-- body 末尾处引入 layui -->
<script th:src="@{/static/layui/layui.js}"></script>
</body>
</html>